/**
 * @author chenjuan
 * @description 定义home页面的请求接口
 */
import Ajax from '../apis/Ajax'

/**
 * 获取用户权限接口
 * @param {String} ids 
 * @returns Promise
 */
export const getRightApi = ids => {
    return Ajax({
        url: '/role/list/byids',
        method: 'GET',
        params: {ids}
    })
    
}

/**
 * 获取付款统计信息
 * @returns Promise
 */
export const getAnalysisApi = () => {
    return Ajax({
        url:'/analysis/collection',
        method: 'GET'
    })
}

/**
 * 获取收款统计
 * @returns Promise
 */
export const getPayableApi = () => {
    return Ajax({
        url:'/analysis/payable',
        method:'GET'
    })
}